package com.bsoft.wx.controller;


import com.bsoft.wx.service.TbUserService;
import com.bsoft.wx.util.R;
import io.swagger.annotations.Api;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Set;

/**
 * <p>
 * 用户表 前端控制器
 * </p>
 *
 * @author hdh
 * @since 2023-01-11
 */
@Slf4j

@Api("用户接口")
@RestController
@RequestMapping("/tb-user")
public class TbUserController {

    @Autowired
    private TbUserService tbUserService;

    @GetMapping("/list")
    public R getList() {
        Set<String> permissions = tbUserService.searchUserPermissions(1);
        log.info(permissions + "-------------");
        return R.ok();
    }
}

